<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <body>

        <ui:composition>


            <h3>Observação correspondente a pagina: #{PageManager.pagina}</h3>

            <div id="stylized" class="myform">


                <h:outputLabel>Nome: <span class="small">Seu Nome</span></h:outputLabel>
                <h:inputText value="#{ObservacaoController.observacao.nome}" id="nome" required="true" requiredMessage="Nome requerido"></h:inputText>

                               
                <h:outputLabel>Observação: <span class="small">Máximo 255 caracteres</span></h:outputLabel>
                <h:inputTextarea value="#{ObservacaoController.observacao.observacao}" id="observacao">
                    <f:validateLength maximum="255" />
                </h:inputTextarea>
                
                <h:commandButton styleClass="button" action="#{ObservacaoController.persiste}" value="Salvar" id="salvar" />
                <h:commandButton styleClass="button" type="reset" value="Limpar" id="limpar" />

            </div>

        </ui:composition>

    </body>
</html>
